import { getCategoryListRequest } from "@/api"

const state = {
  categoryList:[]
}
const mutations ={
  SET_CATEGORYLIST_STATE(state,value){
    state.categoryList = value
  }
}
const actions ={
 async getCategoryList({commit}){
    const re = await getCategoryListRequest()
    commit('SET_CATEGORYLIST_STATE',re)
  }
}
const getters = {}
export default {
  namespaced:true,
  state,
  mutations,
  actions,
  getters
}